package com.hisense.ovcloud.apicontrol.config;

public class Constants {
//    public final static String AUTH_REDIS_PREFIX = "ak#";

    public static class Method{
        public final static String POST = "POST";
        public final static String GET = "GET";
    }

    public static final String APP_SECRET_OUTER_CLIENT_TYPE= "JUOUTER";

    public static final String PARAM_WIFIID = "wifiId";
    public static final String PARAM_DEVICEID = "deviceId";
    public static final String PARAM_DEVICEID_IGNORECASE = "deviceid";
    public static final String PARAM_WIFIID_IGNORECASE = "wifiid";
    public static final String PARAM_TOKEN = "accessToken";
    public static final String PARAM_CUSTOMERID = "customerId";
    public static final String PARAM_APPID = "appId";
    public static final String PARAM_APPSECRET = "appSecret";
    public static final String PARAM_TENANTID = "tenantId";
    public static final String PARAM_WIFIID_TOKEN = "tokenWifiId";
    public static final String PARAM_SIGN = "sign";

    public static final String PARAM_RANDSTR = "randStr";
    public static final String PARAM_TIMESTAMP = "timeStamp";
    public static final String PARAM_SRCTYPE = "srcType";


    public static final String PARAM_PLATFORMID = "platformId";
    public static final String PARAM_SEP = "&";
    public static final String RESPONSE_RESULT_CODE = "resultCode";
    public static final String RESPONSE_ERROR_CODE = "errorCode";
    public static final String RESPONSE_ERROR_DESC = "errorDesc";
    public static final int DEFAULT_PLATFORMID = 1;
    public static final int RESULT_CODE_SUCCESS = 0;
    public static final int RESULT_CODE_FAIL = 1;

    public static final String VERSION = "version";

    public static final int TOKEN_TYPE_NORMAL = 1;
    public static final int TOKEN_TYPE_ANONYMOUS = 2;
    public static final int TOKEN_TYPE_OAUTH = 3;

    public static class SecurityParamters {
        public static final String SPLITOR = ",";

        public final static Double SECURITY_START_VER = 7.0;
        public static final String SECURITY_DATA_PREFIX = "HENC-";
        public static final String SECURITY_PARAM_DATA = "data";

        public static final String SECURITY_DATA_PREFIX_JHK = "JHK-";
    }

    public static class PuidCheck {
        public static final int CLOSED = 0;
        public static final int PRINT_LOG_LET_REQUEST_GO = 1;
        public static final int PRINT_LOG_LET_REQUEST_DOWN= 2;
    }

    public static final String CACHE_PREFIX = "auth_";
    public final static String REDIS_NULL_VALUE = "REDIS_NULL_VALUE";
    public final static int RESULT_SUCCESS = 0;
    public final static int RESULT_FAILED = 1;
    public static final int CACHE_EXPIRE_SECONDS = 300;
    public static final String CLIFE_API_CONTROL_NONCE = "CLIFE_API_CONTROL_NONCE_";
}
